In a JPQL query, the parameters are encoded in the query string as either named ( preceded by a colon for example,: age) or positional ( preceded by a question mark for example,? 3). 在JPQL查询中,查询字符串中的参数以命名方式(前面带有冒号,例如:age)或位置方式(前面带有问号,例如?3)编码。
Creation and troubleshooting of Chinese encoded question in Java Java中文编码问题的产生与处理